GtkSpinButton: Stop using gtk_adjustment_value_changed
authorMatthias Clasen <mclasen@redhat.com>
Sun, 10 May 2015 06:34:33 +0000 (02:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 May 2015 06:34:33 +0000 (02:34 -0400)
This is just an unnecessary indirection.

gtk/gtkspinbutton.c

index 74567f3902273a4d387ec9d02e8c8ac16a1b0276..c9b98ae6776d0b5ab8073a1d2c04196c4a6a8e86 100644 (file)
@@ -2103,6 +2103,7 @@ gtk_spin_button_configure (GtkSpinButton *spin_button,
     adjustment = priv->adjustment;
 
   g_object_freeze_notify (G_OBJECT (spin_button));
+
   if (priv->adjustment != adjustment)
     {
       gtk_spin_button_unset_adjustment (spin_button);
@@ -2132,9 +2133,10 @@ gtk_spin_button_configure (GtkSpinButton *spin_button,
       priv->climb_rate = climb_rate;
       g_object_notify (G_OBJECT (spin_button), "climb-rate");
     }
+
   g_object_thaw_notify (G_OBJECT (spin_button));
 
-  gtk_adjustment_value_changed (adjustment);
+  gtk_spin_button_value_changed (adjustment, spin_button);
 }
 
 /**